
<?php
define("_needlogin", "1");
define("_access", "1");
include_once("../include/db.config.php"); 
$sql = "SELECT name,solves from challenge where enable=1";
$r = getAll($sql);
$rr = array();
foreach ($r as $key => $value) {
	$rr[$value['name']] = $value['solves'];
}
//var_dump($rr);


echo json_encode($rr);